#pragma once
#include "cbaseapp.h"
#include "WareEngineNameSpace.h"
#include "CAniRenderObj.h"
#include "IAudio.h"

BEGIN_WARE
class ISprite;
END_WARE

#define MAX_COUNT 10

enum EBackGround
{
	BG_BMP = 0,
	BG_PNG,
	BG_TGA32,
	BG_DDS_A4R4G4B4,
	BG_DDS_A8R8G8B8,
	BG_DDS_DXT5,

	BG_COUNT,
};

using namespace Ware;

class CTestApp : public CBaseApp
{
public:
	CTestApp(void);
	~CTestApp(void);

	virtual VBOOL	CreateScene();
	virtual VBOOL	UpdateScene( uint32 uCurTime );
	virtual void	ReleaseScene();

	void			CreateTextureSprite( const VCHAR* szTextureFileName );

private:
	//ISprite*		m_pSprite[MAX_COUNT];

	//CRenderObj*		m_pRenderObj[BG_COUNT];
	//CRenderObj*		m_pPlayer;

	uint32			m_uSceneID;

	CAniRenderObj*	m_pPlayer;
	ITexture*		m_pTexture[14];
	uint32			m_uAniStartTime;

	HEFFECT			m_hEffect;
	HCHANNEL		m_hEffectChannel;
	HSTREAM			m_hMusic;
	HCHANNEL		m_hMusicChannel;

};
